package edu.whu.demo.entity;

import jdk.internal.dynalink.linker.LinkerServices;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.ArrayList;
import java.util.List;

@Data
@Entity
@NoArgsConstructor
public class Role {
    @Id
    String name;

    private String remark;

    @Convert(converter = StringListConverter.class)
    private List<String> authorities = new ArrayList<>();
}
